package com.fita.admin.service.authority.impl;

import com.demo2do.core.persistence.annotation.Dao;
import com.fita.admin.dao.RoleDao;
import com.fita.admin.dao.RoleResourceDao;
import com.fita.admin.service.DataServiceImpl;
import com.fita.admin.service.authority.RoleResourceService;
import com.fita.entity.authority.Role;
import com.fita.entity.authority.RoleResource;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * 
 * @author cuteHU
 *
 */
@Service("roleResourceService")
public class RoleResourceImpl extends DataServiceImpl<RoleResource> implements RoleResourceService {
    
    @Dao
    private RoleResourceDao roleResourceDao;
    
    @Dao
    private RoleDao roleDao;
    
    /* (non-Javadoc)
     * @see com.fita.admin.service.authority.RoleResourceService#list(com.fita.entity.authority.Role)
     */
    public List<RoleResource> list(Role role) {
        return roleResourceDao.list(role);
    }

}
